package com.javastar.modules.mail.controller;


import com.javastar.common.result.Result;
import com.javastar.modules.mail.service.MailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 邮件模版表 前端控制器
 * </p>
 *
 * @author Java星球
 * @since 2023-07-26
 */
@RestController
@RequestMapping("/modules/mail-entity")
@Api(tags = "邮件发送")
public class MailController {
    @Autowired
    private MailService mailService;

    @GetMapping("test")
    @ApiOperation(value = "测试")
    public Result<String> test() {
        mailService.sendEmailRegisterSuccessEmail("零限", "3334690392@qq.com");
        return new Result<String>().ok("发送成功");
    }
}
